function onOrder(fieldname){
	if(document.myform["ordering.orderBy"].value == fieldname){
		if(document.myform["ordering.orderAsc"].value == 'true')
			document.myform["ordering.orderAsc"].value=false;
		else
			document.myform["ordering.orderAsc"].value=true;
	} else {
		document.myform["ordering.orderAsc"].value=false;
	}
	document.myform["ordering.orderBy"].value=fieldname;	
	submitForm();
}

function submitForm(){
	document.myform._eventId_search.click();
}

function submitAddForm(){
	document.myform._eventId_add.click();
}

function submitEditForm(){
	document.myform._eventId_edit.click();
}

function submitDeleteForm(){
	document.myform._eventId_delete.click();
}

function submitResetForm(){
	document.myform._eventId_reset.click();
}